package com.hualan.controller;

import com.hualan.service.CourseProblemServicecui;
import com.hualan.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/courseproblem")
public class CourseProblemControllercui {
    @Autowired
    private CourseProblemServicecui courseProblemService;

    //查看所有课堂交流问题
    @GetMapping("/findAllCourseProblem")
    public R findAllCourseProblem(){
        return R.success(courseProblemService.findAllCourseProblem());
    }
}
